/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-09-27
 * Time: 23:37
 */
public class test_4 {
    public static String solve(String s, String t) {
        int n = s.length();
        int m = t.length();


        int[] nums = new int[n + m];
        char[] chars = new StringBuffer(s).reverse().toString().toCharArray();
        char[] chart = new StringBuffer(t).reverse().toString().toCharArray();
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                nums[i + j] += (chars[i] - '0') * (chart[j] - '0');
            }
        }

        StringBuffer ret = new StringBuffer();
        int tmp = 0;

        for (int x : nums) {
            tmp += x;
            ret.append((char) (tmp % 10 + '0'));
            tmp /= 10;

        }
        while (tmp != 0) {
            ret.append((char) (tmp % 10 + '0'));
            tmp /= 10;
        }

        while(ret.length() > 1 && ret.charAt(ret.length() - 1) == '0')
        {
            ret.deleteCharAt(ret.length() - 1);
        }
        return ret.reverse().toString();
    }

    public static void main(String[] args) {
        System.out.println(solve("99", "11"));
    }
}
